•	The getLast function determines the value of the last item in the list.